<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
	.goal_text_width1 {width:750px}
	.goal_text_width2 {width:167px}
	.goal_text_width3 {width:40px}
</style>

<x:parse xml="${param.xmlstr}" var="xmlData" />

<div class="t_bar">项目预期成果考核指标</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="goaleditInfo" cellspacing="1">
	<tr>
		<td rowspan="3" align="right"><span class="color_red">*</span>成果形式：</td>
		<td colspan="2">
			<label><input type="checkbox" name="product" value="01" class="do" label="论文专著">论文专著</label>
		</td>
		<td colspan="2">
			<label><input type="checkbox" name="product" value="02" class="do" label="研究（咨询）报告" >研究（咨询）报告</label>
		</td>
		<td colspan="2">
			<label><input type="checkbox" name="product" value="03" class="do" label="新产品（或生物新品种）" >新产品（或生物新品种）</label>
		</td>
		<td colspan="2">
			<label><input type="checkbox" name="product" value="04" class="do" label="新装置" >新装置</label>
		</td>
		<td colspan="2">
			<label><input type="checkbox" name="product" value="05" class="do" label="新材料" >新材料</label>
		</td>
		<td colspan="2">
			<label><input type="checkbox" name="product" value="06" class="do" label="人才引进" >人才引进</label>
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<label><input type="checkbox" name="product" value="07" class="do" label="计算机软件" >计算机软件</label>
		</td>
		<td colspan="2">
			<label><input type="checkbox" name="product" value="08" class="do" label="人才培养" >人才培养</label>
		</td>
		<td colspan="2">
			<label><input type="checkbox" name="product" value="09" class="do" label="新工艺（或新方法、新模式）" >新工艺（或新方法、新模式）</label>
		</td>
		<td colspan="2">
			<label><input type="checkbox" name="product" value="10" class="do" label="技术标准" >技术标准</label>
		</td>
		<td colspan="4">
			<label><input type="checkbox" name="product" value="11" class="do" label="基地建设" >基地建设</label>
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<label><input type="checkbox" name="product" id="checkbox_product_other" onclick="otherControl();" value="12" class="do" label="其它"> 其它 </label>
		</td>
		<td align="right">名称：</td>
		<td colspan="9">
			<input name="audit/product_other" type="text" class="goal_text_width2 input_css maxlength:50" maxlength="50" value="<x:out select="$xmlData/data/audit/product_other" />"/>
			<input type="hidden" name="audit/product_value" class="required" label="成果形式" value="<x:out select="$xmlData/data/audit/product_value" />" />
			<input type="hidden" name="audit/product_name"  value="<x:out select="$xmlData/data/audit/product_name" />" />
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>引进关键技术（项）</td>
		<td colspan="2">
			<input name="audit/technology_num" onfocus="InitInput.setNumber(this,7,0,0)" label="引进关键技术" type="text" required class="input_css required maxlength:50"  style="text-align:right;" maxlength="50" value="<x:out select="$xmlData/data/audit/technology_num" />"/>
		</td>
		<td align="right">
			<span class="color_red">*</span>技术名称：
		</td>
		<td colspan="9">
			<input name="audit/technology_name" label="技术名称" type="text" class="goal_text_width2 input_css required maxlength:50" maxlength="50" value="<x:out select="$xmlData/data/audit/technology_name" />"/>
		</td>
	</tr>
	
	<tr>
		<td align="right"><span class="color_red">*</span>技术形式：</td>
		<td colspan="2">
			<label><input type="checkbox" name="technology_form" value="01" class="do" label="软件">软件</label>
		</td>
		<td colspan="2">
			<label><input type="checkbox" name="technology_form" value="02" class="do" label="计算方法">计算方法</label>
		</td>
		<td colspan="2">
			<label><input type="checkbox" name="technology_form" value="03" class="do" label="模型">模型 </label>
		</td>
		<td colspan="2">
			<label><input type="checkbox" name="technology_form" value="04" class="do" label="专利">专利</label>
		</td>
		<td colspan="2">
			<label><input type="checkbox" name="technology_form" value="05" class="do" label="数据库">数据库</label>
		</td>
		<td colspan="2">
			<label><input type="checkbox" name="technology_form" value="06" class="do" label="其他">其他 </label>
			<input type="hidden" name="audit/technology_form_value" label="技术形式" class="required" value="<x:out select="$xmlData/data/audit/technology_form_value" />" />
			<input type="hidden" name="audit/technology_form_name"  value="<x:out select="$xmlData/data/audit/technology_form_name" />" />
		</td>
	</tr>
	
	<tr>
		<td align="right"><span class="color_red">*</span>技术先进性：</td>
		<td colspan="2">
			<label><input type="checkbox" name="technology_advance" value="01" class="do" label="世界独有" >世界独有</label>
		</td>
		<td colspan="2">
			<label><input type="checkbox" name="technology_advance" value="02" class="do" label="国际领先">国际领先</label>
		</td>
		<td colspan="2">
			<label><input type="checkbox" name="technology_advance" value="03" class="do" label="国际先进" >国际先进</label>
		</td>
		<td colspan="6">
			<label><input type="checkbox" name="technology_advance" value="04" class="do" label="国内领先" >国内领先</label>
			<input type="hidden" name="audit/technology_advance_value" label="技术先进性" class="required" value="<x:out select="$xmlData/data/audit/technology_advance_value" />" />
			<input type="hidden" name="audit/technology_advance_name" value="<x:out select="$xmlData/data/audit/technology_advance_name" />" />
		</td>
	</tr>
	
	<tr>
		<td align="right"><span class="color_red">*</span>技术成熟程度：</td>
		<td colspan="12">
		 	<c:set var="technology_level_value"><x:out select="$xmlData/data/audit/technology_level_value" /></c:set>
			<cpt:select id="technology_level" key="technology_maturity" value="${technology_level_value}"></cpt:select>
			<input type="hidden" name="audit/technology_level_value"  class="required" label="技术成熟程度" value="<x:out select="$xmlData/data/audit/technology_level_value" />" />
			<input type="hidden" name="audit/technology_level_name" value="<x:out select="$xmlData/data/audit/technology_level_name" />" />
		 </td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>引进关键设备（台）：</td>
		<td colspan="2">
			<input name="audit/equipment_num" onfocus="InitInput.setNumber(this,7,0,0)" label="引进关键设备" type="text"  class="input_css required maxlength:50"  style="text-align:right;" maxlength="50" value="<x:out select="$xmlData/data/audit/equipment_num" />"/>
		</td>
		<td align="right">
			<span class="color_red">*</span>设备名称：
		</td>
		<td colspan="9">
			<input name="audit/equipment_name" label="设备名称" type="text"  class="goal_text_width2 input_css required maxlength:50" maxlength="50" value="<x:out select="$xmlData/data/audit/equipment_name" />"/>
		</td>
	</tr>
	
	<tr>
		<td rowspan="2" align="right">引进特有资源：</td>
		<td align="right"><span class="color_red">*</span>物种数：</td>
		<td>
			<input name="audit/unique_resource/species_num" onfocus="InitInput.setNumber(this,7,0,0)" label="物种数" type="text" class="input_css required maxlength:50"  style="text-align:right;" maxlength="50" value="<x:out select="$xmlData/data/audit/unique_resource/species_num" />"/>
		</td>
		<td align="right"><span class="color_red">*</span>样本量：</td>
		<td>
			<input name="audit/unique_resource/sample_num" onfocus="InitInput.setNumber(this,7,0,0)" label="样本量" type="text" class="input_css required maxlength:50"  style="text-align:right;" maxlength="50" value="<x:out select="$xmlData/data/audit/unique_resource/sample_num" />"/>
		</td>
		<td align="right"><span class="color_red">*</span>数据量：</td>
		<td>
			<input name="audit/unique_resource/data_num" onfocus="InitInput.setNumber(this,7,0,0)" label="数据量" type="text" class="input_css required maxlength:50"  style="text-align:right;" maxlength="50" value="<x:out select="$xmlData/data/audit/unique_resource/data_num" />"/>
		</td>
		<td align="right"><span class="color_red">*</span>图纸数：</td>
		<td colspan="5">
			<input name="audit/unique_resource/drawing_num" onfocus="InitInput.setNumber(this,7,0,0)" label="图纸数" type="text" class="input_css required maxlength:50"  style="text-align:right;" maxlength="50" value="<x:out select="$xmlData/data/audit/unique_resource/drawing_num" />"/>
		</td>		
	</tr>
	<tr>
		<td align="right">其它：</td>
		<td>
			<input name="audit/unique_resource/other_num" onfocus="InitInput.setNumber(this,7,0,0)" label="其它" type="text" class="input_css  maxlength:50"  style="text-align:right;" maxlength="50" value="<x:out select="$xmlData/data/audit/unique_resource/other_num" />"/>
		</td>
		<td align="right">名称：</td>
		<td colspan="9">
			<input name="audit/unique_resource/other_name" label="名称" type="text"  class="goal_text_width2 input_css maxlength:50" maxlength="50" value="<x:out select="$xmlData/data/audit/unique_resource/other_name" />"/>
		</td>
	</tr>
	
	<tr>
		<td align="right"><span class="color_red">*</span>预期取得的科技成果：</td>
	    <td colspan="12">
		 	<input name="audit/scientific_product" type="text" label="预期取得的科技成果" class="goal_text_width1 input_css required maxlength:50" maxlength="50" value="<x:out select="$xmlData/data/audit/scientific_product" />"/> 
	  	</td>
	</tr>
	<tr>
		<td align="right">人才培养（人）：</td>
		<td align="right">
			博士后：
		</td>
		<td>	
			<input name="audit/develop/postdoctor" onfocus="InitInput.setNumber(this,7,0,0)" type="text"  class="input_css maxlength:50"  style="text-align:right;" maxlength="50" value="<x:out select="$xmlData/data/audit/develop/postdoctor" />"/>
		</td>
		<td align="right">
			博士：
		</td>
		<td>
			<input name="audit/develop/doctor" onfocus="InitInput.setNumber(this,7,0,0)" type="text" class="input_css  maxlength:50"  style="text-align:right;" maxlength="50" value="<x:out select="$xmlData/data/audit/develop/doctor" />"/>
		</td>	
		<td align="right">	
			硕士：
		</td>
		<td>	
			<input name="audit/develop/master" onfocus="InitInput.setNumber(this,7,0,0)" type="text" class="input_css maxlength:50"  style="text-align:right;" maxlength="50" value="<x:out select="$xmlData/data/audit/develop/master" />"/>
		</td>	
		<td align="right">	
			工程技术人员：
		</td>
		<td colspan="5">	
			<input name="audit/develop/engineer" onfocus="InitInput.setNumber(this,7,0,0)" type="text" class="input_css maxlength:50"  style="text-align:right;" maxlength="50" value="<x:out select="$xmlData/data/audit/develop/engineer" />"/>
		</td>		
	</tr>
	<tr>
		<td rowspan="2" width="150" align="right">人才引进（人）：</td>
		<td width="60" align="right">
			总计：
		</td>
		<td>
			<input name="audit/introduce/total"  type="text" class="input_css maxlength:50 gray"  
			id="introduce_total" disabled
			style="text-align:right;" maxlength="50" value="<x:out select="$xmlData/data/audit/introduce/total" />"/>
		</td>
		<td width="70" align="right">
			高级职称：
		</td>
		<td>
			<input name="audit/introduce/high" onfocus="InitInput.setNumber(this,7,0,0)" type="text" class="input_css maxlength:50"  
			id="introduce_high"
			onchange="countNum('introduce_','high,postdoctor,doctor,master,engineer','total');"
			style="text-align:right;" maxlength="50" value="<x:out select="$xmlData/data/audit/introduce/high" />"/>
		</td>
		<td width="60" align="right">
			博士后：
		</td>
		<td>
			<input name="audit/introduce/postdoctor" onfocus="InitInput.setNumber(this,7,0,0)" type="text" class="input_css  maxlength:50"  
			id="introduce_postdoctor"
			onchange="countNum('introduce_','high,postdoctor,doctor,master,engineer','total');"
			style="text-align:right;" maxlength="50" value="<x:out select="$xmlData/data/audit/introduce/postdoctor" />"/>
		</td>
		<td width="60" align="right">
			博士：
		</td>
		<td>
			<input name="audit/introduce/doctor" onfocus="InitInput.setNumber(this,7,0,0)" type="text" class="input_css  maxlength:50" 
			id="introduce_doctor"
			onchange="countNum('introduce_','high,postdoctor,doctor,master,engineer','total');"
			 style="text-align:right;" maxlength="50" value="<x:out select="$xmlData/data/audit/introduce/doctor" />"/>
		</td>
		<td width="60" align="right">
			硕士：
		</td>
		<td>
			<input name="audit/introduce/master" onfocus="InitInput.setNumber(this,7,0,0)" type="text" class="input_css  maxlength:50"  
			id="introduce_master"
			onchange="countNum('introduce_','high,postdoctor,doctor,master,engineer','total');"
			style="text-align:right;" maxlength="50" value="<x:out select="$xmlData/data/audit/introduce/master" />"/>
		</td>
		<td width="100" align="right">
			工程技术人员：
		</td>
		<td>
			<input name="audit/introduce/engineer" onfocus="InitInput.setNumber(this,7,0,0)" type="text" class="input_css  maxlength:50"  
			id="introduce_engineer"
			onchange="countNum('introduce_','high,postdoctor,doctor,master,engineer','total');"
			style="text-align:right;" maxlength="50" value="<x:out select="$xmlData/data/audit/introduce/engineer" />"/>
		</td>		
	</tr>
	<tr>
		<td colspan="3" align="right">
			总计来华工作（月）：
		</td>
		<td>
			<input name="audit/introduce/work_month" onfocus="InitInput.setNumber(this,7,0,0)" type="text" class="input_css maxlength:50"  style="text-align:right;" maxlength="50" value="<x:out select="$xmlData/data/audit/introduce/work_month" />"/>
		</td>
		<td colspan="3" align="right">
			其中高级职称人员来华工作（月）：
		</td>
		<td colspan="5">	
			<input name="audit/introduce/high_month" onfocus="InitInput.setNumber(this,7,0,0)" type="text" class="input_css maxlength:50"  style="text-align:right;" maxlength="50" value="<x:out select="$xmlData/data/audit/introduce/high_month" />"/>
		</td>		
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>合作/引进成果知识产权归属：</td>
		<td colspan="12">
			<label><input type="radio" name="attribution"  class="do" value="01" label="形成自主知识产权" onclick="attributionControl();">形成自主知识产权</label>
			<br/>
			<label><input type="radio" name="attribution"  class="do" value="02" label="共享知识产权" onclick="attributionControl();">共享知识产权</label>，
			 其中中方占<input name="audit/attribution_zh" id="attribution_zh" label="共享知识产权中的中方占比率" value="<x:out select="$xmlData/data/audit/attribution_zh" />" onfocus="InitInput.setNumber(this,7,0,0)" onchange="countNum('attribution_','zh,en','total');" type="text" size="1" style="text-align:right;">%，
			 外方<input name="audit/attribution_en" id="attribution_en" label="共享知识产权中的外方占比率" value="<x:out select="$xmlData/data/audit/attribution_en" />" onfocus="InitInput.setNumber(this,7,0,0)" onchange="countNum('attribution_','zh,en','total');" type="text" size="1" style="text-align:right;">%（合计为100%）
		      
		      <input type="hidden" id="attribution_total" name="audit/attribution_total" value="<x:out select="$xmlData/data/audit/attribution_total" />" label="共享知识产权中的外方占比率和中方占比率之和">
		      <input type="hidden" id="attribution_100" value="100" label="100">
			<br/>
			<label><input type="radio" name="attribution"  class="do" value="03" label="获得在华许可" onclick="attributionControl();">获得在华许可</label>
			<input type="hidden" name="audit/attribution_value" class="required"  label="合作/引进成果知识产权归属"  value="<x:out select="$xmlData/data/audit/attribution_value" />">	
			<input type="hidden" name="audit/attribution_name" value="<x:out select="$xmlData/data/audit/attribution_name" />">	
		</td>
	</tr>
</table>

<script type="text/javascript">
    //成果形式是否选中“其它 ”	
    function otherControl(){
   		if($("#checkbox_product_other").is(":checked")){
   			$("[name='audit/product_other']").attr("disabled",false).removeClass("gray");
   		} else {
   			$("[name='audit/product_other']").attr("disabled",true).addClass("gray").val("");
   		}
    }
    
    //合作/引进成果知识产权归属是否选中“共享知识产权”
    function attributionControl() {
    	var value=$("[name='attribution']:checked").val();
    	
		if(value=="02"){
			$("#attribution_zh").addClass("required").removeClass("gray").attr("disabled",false);
			$("#attribution_en").addClass("required").removeClass("gray").attr("disabled",false);
			
			$("#attribution_total").addClass("valueEqual:attribution_total:attribution_100");
		}else{
			$("#attribution_zh").removeClass("required").addClass("gray").attr("disabled",true).val("");
			$("#attribution_en").removeClass("required").addClass("gray").attr("disabled",true).val("");
			
			$("#attribution_total").removeClass("valueEqual:attribution_total:attribution_100");
		}
	}
    
    $(function() {
    	$("#goaleditInfo :text:not(.goal_text_width1,.goal_text_width2)").addClass("goal_text_width3"); //设置文本框的长度
    	
    	otherControl();
    	attributionControl();
    });
</script>